96c942ff617eaf9f75d562997529803ca59e9848,process/process-manager/src/main/java/io/fabric8/process/manager/commands/ProcessListAction.java,ProcessListAction,printInstallations,#List#PrintStream#,43
Before Change
String id = installation.getId();
String pid = "";
try {
pid = "" + installation.getActivePid();
} catch (IOException e) {
// ignore
}
printer.row(id, pid, installation.getName());
}
printer.print(out);
After Change
for (Installation installation : installations) {
String id = installation.getId();
String pid = "";
String connected = "no";
String path = installation.getInstallDir() != null ? installation.getInstallDir().getPath() : "";
String type = installation.getName();
if (!verbose) {
if (type.startsWith("java ")) {
// skip middle package name as that is too verbose
int idx = type.lastIndexOf('.');
if (idx > 0) {
type = "java " + type.substring(idx + 1);
}
}
}
try {
Long aid = installation.getActivePid();
if (aid != null) {
pid = "" + aid;
connected = "yes";
}
} catch (IOException e) {
// ignore
}
if (verbose) {
printer.row(id, pid, connected, type, path);
} else {
printer.row(id, pid, connected, type);
}
}